package com.qst.crop.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "finance", description = "融资模块")
@Table(name = "tb_finance")
public class Finance {

    @Id
    private Integer financeId;
    private Integer bankId;
    private String ownName;
    private String realName;
    private String phone;
    private String idNum;
    private Integer status;
    private String remark;
    @NotBlank(message = "金额不能为空")
    private Double money;
    @NotBlank(message = "利率不能为空")
    private Double rate;
    @NotBlank(message = "还款周期不能为空")
    private Integer repayment;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String combinationName1;
    private String combinationPhone1;
    private String combinationIdnum1;
    private String combinationName2;
    private String combinationPhone2;
    private String combinationIdnum2;
    private String fileInfo;
}
